Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
entity free_claim
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val BJORN_VOUCHER_NAME: text = "voucher_bjorn"
Link copied to clipboard
val DEPLETE_AMOUNT: text = "deplete_amount"
Link copied to clipboard
Link copied to clipboard
val SPECIALIZATION_OPTIONAL_PARAMETER_NAME: text = "specialization_name"

Functions

Link copied to clipboard
function calculate_extracted_amount(config_alpha: decimal, config_land_pool: integer, config_voucher_to_bjorn_ratio: integer, bjorn_extracted: integer, number_of_vouchers: integer): integer
Link copied to clipboard
function determine_deplete_amount(specialization: specialization, tier: integer): integer
Link copied to clipboard
function find_economy_node(plot_id: integer, specialization_name: text): node
Link copied to clipboard
@extendable function on_claim_free_tokens(plot_id: integer, account: account, amount: integer, token_name: text)
Link copied to clipboard
@extend(on_quest_accept) function on_quest_accept(plot_id: integer, account_id: byte_array, quest: quest, optional_parameters: map<text, byte_array>)
Link copied to clipboard
@extend(on_quest_finish) function on_quest_finish(plot_id: integer, account_id: byte_array, quest: quest, optional_parameters: map<text, byte_array>)
Link copied to clipboard
@extend(on_quest_skip) function on_quest_skip(plot_id: integer, account_id: byte_array, quest: quest, optional_parameters: map<text, byte_array>)
Link copied to clipboard
@extend(on_recurring_quest_accept) function on_recurring_quest_accept(plot_id: integer, specialization: specialization, tier: integer)
Link copied to clipboard
Link copied to clipboard
function reserve_funds(plot_id: integer, account_id: byte_array, reservation_id: byte_array, number_of_vouchers: integer)
Link copied to clipboard
function unreserve_funds(plot_id: integer, account_id: byte_array, reservation_id: byte_array)

Queries

Link copied to clipboard
@mount("bjorn_extraction.get_bjorn_extraction_configs") query get_bjorn_extraction_configs(): (alpha: decimal, land_pool: integer, voucher_to_bjorn_ratio: integer, free_vouchers_interval_in_millis: integer, free_vouchers_per_interval: integer)
Link copied to clipboard
@mount("bjorn_extraction.get_free_claim_status_for_plot") query get_free_claim_status_for_plot(plot_id: integer): free_claim_status
Link copied to clipboard
@mount("bjorn_extraction.get_reserved_funds") query get_reserved_funds(account_id: byte_array): list<(plot_id: integer, reservation_id: text, amount: integer)>
Link copied to clipboard
@mount("bjorn_extraction.get_specialization_details") query get_specialization_details(): list<specialization_dto>

Operations

Link copied to clipboard
@mount("bjorn_extraction.claim_free_tokens") operation claim_free_tokens(plot_id: integer, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("bjorn_extraction.create_specialization") operation create_specialization(specialization_name: text)
Link copied to clipboard
@mount("bjorn_extraction.place_paygate") operation place_paygate(plot_id: integer, specialization_name: text, location: location, rotation: grid_rotation, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("bjorn_extraction.recharge_paygate") operation recharge_paygate(plot_id: integer, specialization_name: text, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("bjorn_extraction.register_bjorn_voucher") operation register_bjorn_voucher()
Link copied to clipboard
@mount("bjorn_extraction.set_global_bjorn_extraction_parameters") operation set_global_bjorn_extraction_parameters(alpha: decimal, land_pool: integer, voucher_to_bjorn_ratio: integer, free_vouchers_interval_in_millis: integer, free_vouchers_per_interval: integer)
Link copied to clipboard
@mount("bjorn_extraction.set_specialization_cost") operation set_specialization_cost(specialization_name: text, cost_type: text, tier: integer, amount: integer)
Link copied to clipboard
@mount("bjorn_extraction.set_specialization_duration") operation set_specialization_duration(specialization_name: text, tier: integer, durability: integer)
Link copied to clipboard
@mount("bjorn_extraction.upgrade_paygate") operation upgrade_paygate(plot_id: integer, specialization_name: text, account_id: byte_array, auth_descriptor_id: byte_array)